package com.ruoyi.ring.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ring.mapper.RingMyReminderSetMapper;
import com.ruoyi.ring.domain.RingMyReminderSet;
import com.ruoyi.ring.service.IRingMyReminderSetService;

/**
 * 我的戒指提醒Service业务层处理
 * 
 * @author liuwp
 * @date 2025-10-15
 */
@Service
public class RingMyReminderSetServiceImpl implements IRingMyReminderSetService 
{
    @Autowired
    private RingMyReminderSetMapper ringMyReminderSetMapper;

    /**
     * 查询我的戒指提醒
     * 
     * @param id 我的戒指提醒主键
     * @return 我的戒指提醒
     */
    @Override
    public RingMyReminderSet selectRingMyReminderSetById(Long id)
    {
        return ringMyReminderSetMapper.selectRingMyReminderSetById(id);
    }

    /**
     * 查询我的戒指提醒列表
     * 
     * @param ringMyReminderSet 我的戒指提醒
     * @return 我的戒指提醒
     */
    @Override
    public List<RingMyReminderSet> selectRingMyReminderSetList(RingMyReminderSet ringMyReminderSet)
    {
        return ringMyReminderSetMapper.selectRingMyReminderSetList(ringMyReminderSet);
    }

    /**
     * 根据业务主键查询一条记录：我的戒指提醒
     *
     * @param ringMyReminderSet 我的戒指提醒
     * @return 我的戒指提醒
     */
    @Override
    public RingMyReminderSet selectOneRingMyReminderSet(RingMyReminderSet ringMyReminderSet)
    {
        return ringMyReminderSetMapper.selectOneRingMyReminderSet(ringMyReminderSet);
    }

    /**
     * 新增我的戒指提醒
     * 
     * @param ringMyReminderSet 我的戒指提醒
     * @return 结果
     */
    @Override
    public int insertRingMyReminderSet(RingMyReminderSet ringMyReminderSet)
    {
        ringMyReminderSet.setCreateTime(DateUtils.getNowDate());
        return ringMyReminderSetMapper.insertRingMyReminderSet(ringMyReminderSet);
    }

    /**
     * 修改我的戒指提醒
     * 
     * @param ringMyReminderSet 我的戒指提醒
     * @return 结果
     */
    @Override
    public int updateRingMyReminderSet(RingMyReminderSet ringMyReminderSet)
    {
        ringMyReminderSet.setUpdateTime(DateUtils.getNowDate());
        return ringMyReminderSetMapper.updateRingMyReminderSet(ringMyReminderSet);
    }

    @Override
    public int updateRingMyReminderSetCondition(RingMyReminderSet ringMyReminderSet, RingMyReminderSet ringMyReminderSetCondition)
    {
                ringMyReminderSet.setUpdateTime(DateUtils.getNowDate());
        return ringMyReminderSetMapper.updateRingMyReminderSetCondition(ringMyReminderSet, ringMyReminderSetCondition);
    }

    /**
     * 批量删除我的戒指提醒
     * 
     * @param ids 需要删除的我的戒指提醒主键
     * @return 结果
     */
    @Override
    public int deleteRingMyReminderSetByIds(Long[] ids)
    {
        return ringMyReminderSetMapper.deleteRingMyReminderSetByIds(ids);
    }

    /**
     * 删除我的戒指提醒信息
     * 
     * @param id 我的戒指提醒主键
     * @return 结果
     */
    @Override
    public int deleteRingMyReminderSetById(Long id)
    {
        return ringMyReminderSetMapper.deleteRingMyReminderSetById(id);
    }

    /**
     * 条件删除我的戒指提醒
     *
     * @param ringMyReminderSet 我的戒指提醒
     * @return 结果
     */
    @Override
    public int deleteRingMyReminderSetByCondition(RingMyReminderSet ringMyReminderSet)
    {
        return ringMyReminderSetMapper.deleteRingMyReminderSetByCondition(ringMyReminderSet);
    }

}
